```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Linux故障排查神器：strace和lsof深度解析</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap">
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f9f9f9;
        }
        .serif {
            font-family: 'Noto Serif SC', serif;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .command-box {
            background-color: #2d3748;
            border-left: 4px solid #4f46e5;
        }
        .tool-icon {
            font-size: 2.5rem;
            color: #4f46e5;
        }
        .hover-underline {
            position: relative;
        }
        .hover-underline:after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -2px;
            left: 0;
            background-color: #4f46e5;
            transition: width 0.3s ease;
        }
        .hover-underline:hover:after {
            width: 100%;
        }
        .dropcap:first-letter {
            float: left;
            font-size: 4.5rem;
            line-height: 0.8;
            margin: 0.2em 0.5rem 0 0;
            color: #4f46e5;
            font-family: 'Noto Serif SC', serif;
            font-weight: 700;
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 md:py-32 px-4 md:px-0">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-6 serif">Linux系统诊断双雄</h1>
                    <h2 class="text-2xl md:text-3xl font-semibold mb-6">深入解析strace与lsof</h2>
                    <p class="text-lg opacity-90 mb-8">探索Linux系统中最强大的故障排查工具，揭开系统调用的神秘面纱，掌握文件和网络资源管理的艺术。</p>
                    <div class="flex space-x-4">
                        <a href="#strace" class="bg-white text-indigo-600 hover:bg-gray-100 px-6 py-3 rounded-lg font-medium transition duration-300">strace详解</a>
                        <a href="#lsof" class="bg-indigo-800 text-white hover:bg-indigo-900 px-6 py-3 rounded-lg font-medium transition duration-300">lsof指南</a>
                    </div>
                </div>
                <div class="md:w-1/2 flex justify-center">
                    <div class="relative w-full max-w-md">
                        <div class="absolute -top-6 -left-6 w-32 h-32 bg-yellow-400 rounded-full opacity-20"></div>
                        <div class="absolute -bottom-6 -right-6 w-32 h-32 bg-purple-400 rounded-full opacity-20"></div>
                        <div class="relative bg-white bg-opacity-10 backdrop-filter backdrop-blur-lg rounded-2xl p-8 border border-white border-opacity-20">
                            <div class="flex justify-center mb-6">
                                <i class="fas fa-terminal text-5xl text-white opacity-90"></i>
                            </div>
                            <div class="space-y-4">
                                <div class="bg-black bg-opacity-40 p-3 rounded-lg">
                                    <p class="text-sm font-mono text-green-400">$ strace -p &lt;pid&gt;</p>
                                </div>
                                <div class="bg-black bg-opacity-40 p-3 rounded-lg">
                                    <p class="text-sm font-mono text-green-400">$ lsof -i :80</p>
                                </div>
                                <div class="bg-black bg-opacity-40 p-3 rounded-lg">
                                    <p class="text-sm font-mono text-green-400">$ strace -e trace=open,read,write</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Introduction -->
    <section class="py-16 px-4 bg-white">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-16">
                <h2 class="text-3xl font-bold mb-4 serif">Linux系统管理员必备工具</h2>
                <div class="w-24 h-1 bg-indigo-600 mx-auto mb-6"></div>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto dropcap">
                    在Linux系统管理和故障排查中，strace和lsof是两个不可或缺的利器。它们如同系统管理员的手术刀，能够精准地剖析系统运行状况，解决各种疑难杂症。无论是调试程序行为、分析性能瓶颈，还是排查文件锁定和网络连接问题，这两个工具都能提供关键性的洞察。
                </p>
            </div>
            
            <div class="grid md:grid-cols-2 gap-10 mb-16">
                <div class="bg-gray-50 rounded-xl p-8 card-hover">
                    <div class="flex items-center mb-6">
                        <i class="fas fa-search tool-icon mr-4"></i>
                        <h3 class="text-2xl font-bold text-gray-800 serif">strace</h3>
                    </div>
                    <p class="text-gray-600 mb-4">strace是一个强大的系统调用跟踪工具，能够监控进程与Linux内核之间的交互。它可以显示程序执行的每一个系统调用，包括调用参数和返回值。</p>
                    <ul class="space-y-2 text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>跟踪程序执行的系统调用和信号</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>诊断程序挂起和性能问题</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>分析文件访问和网络操作</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-gray-50 rounded-xl p-8 card-hover">
                    <div class="flex items-center mb-6">
                        <i class="fas fa-folder-open tool-icon mr-4"></i>
                        <h3 class="text-2xl font-bold text-gray-800 serif">lsof</h3>
                    </div>
                    <p class="text-gray-600 mb-4">lsof全称"List Open Files"，可以列出系统中所有打开的文件和网络连接。在Linux系统中，几乎所有东西都是文件形式存在，因此这个工具功能极为强大。</p>
                    <ul class="space-y-2 text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>查看所有打开的文件和网络连接</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>排查文件锁定和删除问题</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>分析网络端口占用情况</span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </section>

    <!-- strace Section -->
    <section id="strace" class="py-16 px-4 bg-gray-50">
        <div class="container mx-auto max-w-5xl">
            <div class="flex items-center mb-12">
                <i class="fas fa-search text-3xl text-indigo-600 mr-4"></i>
                <h2 class="text-3xl font-bold text-gray-800 serif">strace：系统调用跟踪专家</h2>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold text-gray-800 mb-6 serif">基本用法</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-play text-indigo-600"></i>
                            </div>
                            <h4 class="text-xl font-semibold text-gray-800">跟踪运行中的进程</h4>
                        </div>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ strace -p &lt;pid&gt;</p>
                        </div>
                        <p class="text-gray-600">其中 &lt;pid&gt; 是进程的ID。这将实时显示该进程的系统调用。</p>
                    </div>
                    
                    <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-terminal text-indigo-600"></i>
                            </div>
                            <h4 class="text-xl font-semibold text-gray-800">启动并跟踪新进程</h4>
                        </div>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ strace ls -l</p>
                        </div>
                        <p class="text-gray-600">启动命令并跟踪它的所有系统调用。</p>
                    </div>
                    
                    <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-file-alt text-indigo-600"></i>
                            </div>
                            <h4 class="text-xl font-semibold text-gray-800">输出重定向到文件</h4>
                        </div>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ strace -o output.txt &lt;command&gt;</p>
                        </div>
                        <p class="text-gray-600">将系统调用的跟踪输出保存到文件，方便后续分析。</p>
                    </div>
                </div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold text-gray-800 mb-6 serif">高级用法</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                        <h4 class="text-xl font-semibold text-gray-800 mb-4">跟踪特定系统调用</h4>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ strace -e trace=open,read,write &lt;command&gt;</p>
                        </div>
                        <p class="text-gray-600">只跟踪文件相关的open、read和write系统调用。</p>
                    </div>
                    
                    <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                        <h4 class="text-xl font-semibold text-gray-800 mb-4">分析系统调用时间</h4>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ strace -T &lt;command&gt;</p>
                        </div>
                        <p class="text-gray-600">显示每个系统调用的执行时间，用于性能分析。</p>
                    </div>
                    
                    <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                        <h4 class="text-xl font-semibold text-gray-800 mb-4">跟踪特定信号</h4>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ strace -e signal=term &lt;command&gt;</p>
                        </div>
                        <p class="text-gray-600">跟踪接收的SIGTERM信号。</p>
                    </div>
                    
                    <div class="bg-white rounded-xl p-6 shadow-sm card-hover">
                        <h4 class="text-xl font-semibold text-gray-800 mb-4">统计系统调用</h4>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ strace -c &lt;command&gt;</p>
                        </div>
                        <p class="text-gray-600">统计系统调用次数、耗时和错误情况。</p>
                    </div>
                </div>
            </div>
            
            <div>
                <h3 class="text-2xl font-semibold text-gray-800 mb-6 serif">应用场景</h3>
                <div class="grid md:grid-cols-3 gap-6">
                    <div class="bg-indigo-50 rounded-xl p-6">
                        <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mb-4">
                            <i class="fas fa-hourglass-half text-indigo-600"></i>
                        </div>
                        <h4 class="text-lg font-semibold mb-2">诊断程序挂起</h4>
                        <p class="text-gray-600 text-sm">查看进程是否在等待某些系统调用或资源。</p>
                    </div>
                    
                    <div class="bg-indigo-50 rounded-xl p-6">
                        <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mb-4">
                            <i class="fas fa-tachometer-alt text-indigo-600"></i>
                        </div>
                        <h4 class="text-lg font-semibold mb-2">性能分析</h4>
                        <p class="text-gray-600 text-sm">识别耗时的系统调用，优化程序性能。</p>
                    </div>
                    
                    <div class="bg-indigo-50 rounded-xl p-6">
                        <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mb-4">
                            <i class="fas fa-file-alt text-indigo-600"></i>
                        </div>
                        <h4 class="text-lg font-semibold mb-2">文件访问问题</h4>
                        <p class="text-gray-600 text-sm">跟踪文件打开、读取和写入操作。</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- lsof Section -->
    <section id="lsof" class="py-16 px-4 bg-white">
        <div class="container mx-auto max-w-5xl">
            <div class="flex items-center mb-12">
                <i class="fas fa-folder-open text-3xl text-indigo-600 mr-4"></i>
                <h2 class="text-3xl font-bold text-gray-800 serif">lsof：文件和网络资源管理</h2>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold text-gray-800 mb-6 serif">基本用法</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div class="bg-gray-50 rounded-xl p-6 shadow-sm card-hover">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-list-ul text-indigo-600"></i>
                            </div>
                            <h4 class="text-xl font-semibold text-gray-800">列出所有打开文件</h4>
                        </div>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ lsof</p>
                        </div>
                        <p class="text-gray-600">列出系统中所有打开的文件和网络连接。</p>
                    </div>
                    
                    <div class="bg-gray-50 rounded-xl p-6 shadow-sm card-hover">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-search text-indigo-600"></i>
                            </div>
                            <h4 class="text-xl font-semibold text-gray-800">查看进程打开的文件</h4>
                        </div>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ lsof -p &lt;pid&gt;</p>
                        </div>
                        <p class="text-gray-600">列出指定进程ID打开的所有文件。</p>
                    </div>
                    
                    <div class="bg-gray-50 rounded-xl p-6 shadow-sm card-hover">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-file text-indigo-600"></i>
                            </div>
                            <h4 class="text-xl font-semibold text-gray-800">查看文件被哪些进程打开</h4>
                        </div>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ lsof /var/log/syslog</p>
                        </div>
                        <p class="text-gray-600">检查特定文件被哪些进程使用。</p>
                    </div>
                    
                    <div class="bg-gray-50 rounded-xl p-6 shadow-sm card-hover">
                        <div class="flex items-center mb-4">
                            <div class="bg-indigo-100 w-10 h-10 rounded-full flex items-center justify-center mr-4">
                                <i class="fas fa-network-wired text-indigo-600"></i>
                            </div>
                            <h4 class="text-xl font-semibold text-gray-800">查看端口使用情况</h4>
                        </div>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ lsof -i :80</p>
                        </div>
                        <p class="text-gray-600">查看使用80端口的进程。</p>
                    </div>
                </div>
            </div>
            
            <div class="mb-12">
                <h3 class="text-2xl font-semibold text-gray-800 mb-6 serif">高级用法</h3>
                <div class="grid md:grid-cols-2 gap-8">
                    <div class="bg-gray-50 rounded-xl p-6 shadow-sm card-hover">
                        <h4 class="text-xl font-semibold text-gray-800 mb-4">列出所有TCP连接</h4>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ lsof -i tcp</p>
                        </div>
                    </div>
                    
                    <div class="bg-gray-50 rounded-xl p-6 shadow-sm card-hover">
                        <h4 class="text-xl font-semibold text-gray-800 mb-4">列出所有UDP连接</h4>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ lsof -i udp</p>
                        </div>
                    </div>
                    
                    <div class="bg-gray-50 rounded-xl p-6 shadow-sm card-hover">
                        <h4 class="text-xl font-semibold text-gray-800 mb-4">按文件类型过滤</h4>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ lsof -d 4</p>
                        </div>
                        <p class="text-gray-600">列出所有网络连接(文件描述符4通常用于网络)。</p>
                    </div>
                    
                    <div class="bg-gray-50 rounded-xl p-6 shadow-sm card-hover">
                        <h4 class="text-xl font-semibold text-gray-800 mb-4">查看用户打开的文件</h4>
                        <div class="command-box p-4 rounded-lg mb-4">
                            <p class="font-mono text-green-400">$ lsof -u username</p>
                        </div>
                        <p class="text-gray-600">列出特定用户打开的所有文件。</p>
                    </div>
                </div>
            </div>
            
            <div>
                <h3 class="text-2xl font-semibold text-gray-800 mb-6 serif">应用场景</h3>
                <div class="grid md:grid-cols-3 gap-6">
                    <div class="bg-indigo-50 rounded-xl p-6">
                        <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mb-4">
                            <i class="fas fa-lock text-indigo-600"></i>
                        </div>
                        <h4 class="text-lg font-semibold mb-2">文件系统锁定</h4>
                        <p class="text-gray-600 text-sm">查看哪个进程正在使用某个文件，解决文件锁定问题。</p>
                    </div>
                    
                    <div class="bg-indigo-50 rounded-xl p-6">
                        <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mb-4">
                            <i class="fas fa-plug text-indigo-600"></i>
                        </div>
                        <h4 class="text-lg font-semibold mb-2">网络端口冲突</h4>
                        <p class="text-gray-600 text-sm">确定哪个进程占用了某个网络端口。</p>
                    </div>
                    
                    <div class="bg-indigo-50 rounded-xl p-6">
                        <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mb-4">
                            <i class="fas fa-chart-line text-indigo-600"></i>
                        </div>
                        <h4 class="text-lg font-semibold mb-2">资源监控</h4>
                        <p class="text-gray-600 text-sm">监控系统中打开的文件和网络连接，识别资源泄漏。</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Visualization -->
    <section class="py-16 px-4 bg-gray-50">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold text-gray-800 mb-4 serif">strace与lsof的关系与比较</h2>
                <div class="w-24 h-1 bg-indigo-600 mx-auto"></div>
            </div>
            
            <div class="bg-white rounded-xl shadow-sm p-8 mb-12">
                <div class="mermaid">
                    graph TD
                    A[Linux系统工具] --> B(strace)
                    A --> C(lsof)
                    B --> D[跟踪系统调用]
                    B --> E[分析程序行为]
                    B --> F[性能调优]
                    C --> G[查看打开文件]
                    C --> H[网络连接]
                    C --> I[资源管理]
                    D --> J[深入程序内部]
                    G --> K[系统资源视角]
                    style B fill:#4f46e5,color:white
                    style C fill:#7c3aed,color:white
                </div>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div class="bg-white rounded-xl shadow-sm p-8 card-hover">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 serif">何时使用strace</h3>
                    <ul class="space-y-3 text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>程序异常终止或无响应时</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>需要了解程序与内核的交互细节</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>分析程序性能瓶颈</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>调试文件或网络I/O问题</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white rounded-xl shadow-sm p-8 card-hover">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 serif">何时使用lsof</h3>
                    <ul class="space-y-3 text-gray-600">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>无法卸载文件系统或删除文件时</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>排查网络端口占用冲突</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>监控系统资源使用情况</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-indigo-500 mt-1 mr-2"></i>
                            <span>查找特定用户或进程的资源占用</span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </section>

    <!-- Tips Section -->
    <section class="py-16 px-4 bg-indigo-600 text-white">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4 serif">专业技巧与实践建议</h2>
                <div class="w-24 h-1 bg-white bg-opacity-50 mx-auto"></div>
            </div>
            
            <div class="grid md:grid-cols-3 gap-8">
                <div class="bg-white bg-opacity-10 rounded-xl p-6 backdrop-filter backdrop-blur-sm">
                    <div class="w-12 h-12 bg-white bg-opacity-20 rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-lightbulb"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">结合使用效果更佳</h3>
                    <p class="text-white text-opacity-80">先用lsof定位问题文件或网络连接，再用strace深入分析相关进程的行为。</p>
                </div>
                
                <div class="bg-white bg-opacity-10 rounded-xl p-6 backdrop-filter backdrop-blur-sm">
                    <div class="w-12 h-12 bg-white bg-opacity-20 rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-exclamation-triangle"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">性能影响须知</h3>
                    <p class="text-white text-opacity-80">strace会显著降低程序性能，生产环境慎用。可使用-c参数减少影响。</p>
                </div>
                
                <div class="bg-white bg-opacity-10 rounded-xl p-6 backdrop-filter backdrop-blur-sm">
                    <div class="w-12 h-12 bg-white bg-opacity-20 rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-filter"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">精确过滤输出</h3>
                    <p class="text-white text-opacity-80">善用grep等工具过滤strace/lsof输出，如：<code class="bg-black bg-opacity-30 px-1 rounded">strace -p PID 2>&1 | grep ENOENT</code></p>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12 px-4">
        <div class="container mx-auto max-w-5xl">
            <div class="text-center">
                <h3 class="text-xl font-semibold mb-2 hover-underline inline-block">技术小馆</h3>
                <p class="text-gray-400">探索技术的无限可能</p>
                <div class="mt-6">
                    <a href="http://www.yuque.com/jtostring" class="text-gray-300 hover:text-white transition duration-300 inline-block border border-gray-600 hover:border-white px-4 py-2 rounded-lg">访问语雀主页</a>
                </div>
                <div class="mt-8 pt-8 border-t border-gray-800 text-gray-500 text-sm">
                    <p>© 2023 技术小馆. 保留所有权利.</p>
                </div>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```